package com.lengyu.vxminiprogram.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lengyu.vxminiprogram.dto.VotesDto;
import com.lengyu.vxminiprogram.entity.Votes;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface IVotesConverter {
    Votes dtoToEntity(VotesDto dto);
    VotesDto entityToDto(Votes entity);
    List<VotesDto> listEntityToDto(List<Votes> entityList);
    List<Votes> listDtoToEntity(List<VotesDto> dtoList);
    Page<VotesDto> pageEntityToDto(Page<Votes> entityPage);
}
